package com.overseasShopping.Biz;

import java.util.List;

import com.overseasShopping.pojo.OrderList;

public interface OrderListBiz {
	public OrderList getOrder(String orderId);
	//获取所有订单
	public List<OrderList> getUserIdAll(String buyUserId,String saleUserId);
	//获取卖出的订单
	public List<OrderList> getSaleUserIdAll(String saleUserId);
	//获取购买的订单
	public List<OrderList> getBuyUserIdAll(String buyUserId);
	//根据交易状态获取订单
	public List<OrderList> getStateAll(int state);
	public List<OrderList> getBuyStateList(int state,String buyUserId);
	public List<OrderList> getSaleStateList(int state,String saleUserId);
	//生成订单
	public void addOrder(OrderList order);	
	//更改订单
	public void update(OrderList orderList);
	//删除订单
	public void delete(OrderList orderList);
}
